package com.dd.auth.service;

import com.dd.auth.mapper.UserMapper;
import com.dd.auth.vo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    private final UserMapper userMapper;

    @Autowired
    public UserService(UserMapper userDao) {
        this.userMapper = userDao;
    }

    public List<User> getAllUser() {
        return userMapper.getAllUser();
    }


    public List<User> getUserBySex(String sex) {
        return userMapper.getUserBySex(sex);
    }
}
